package br.com.linkcom.sined.geral.service;

import br.com.linkcom.neo.core.standard.Neo;
import br.com.linkcom.sined.geral.bean.Ator;
import br.com.linkcom.sined.geral.dao.AtorDAO;
import br.com.linkcom.sined.util.neo.persistence.GenericService;

public class AtorService extends GenericService<Ator> {
	
	private static AtorService instance;
	private AtorDAO atorDAO;
	
	public static AtorService getInstance() {
		if (instance==null){
			instance = Neo.getObject(AtorService.class);
		}
		return instance;
	}
	
	public void setAtorDAO(AtorDAO atorDAO) {
		this.atorDAO = atorDAO;
	}
	
	public Ator load(String nome){
		return atorDAO.load(nome);
	}
}
